package JavaSEAdvance.day01_extends.d015_homework01;

/**
 * @author Xiao
 * @date 2021/7/15
 */
public class Washer extends Electrical {
    public Washer() {
    }

    public Washer(String brand, String type, String color, int price) {
        super(brand, type, color, price);
    }

    public void doSomeWashing () {
        System.out.println("洗衣服");
    }

    @Override
    public String toString() {
        return "Washer{" +
                "brand='" + getBrand() + '\'' +
                ", type='" + getType() + '\'' +
                ", color='" + getColor() + '\'' +
                ", price=" + getPrice() +
                '}';
    }
}
